<?php

namespace app\admin\validate;

use app\common\validate\BaseValidate;

class GoodsValidate extends BaseValidate
{
    protected $rule = [
        "title|名称" => 'require',
        "price|价格" => 'require',
        "images|图片" => 'require|array',
        "content|介绍" => 'require',
    ];

    protected $message = [];
    
    
    protected $scene = [
        "add" => ["title",'price','images','content'],
        "edit" => ["id","title",'price','images','content']
    ];
}